package com.gupaoedu.vip.strategy;

/**
 * Created by zhaozhonghai on 2017/5/24.
 */
public class Person {
    //学习方式
    private Learn learn;

    public Person (Learn learn){
        this.learn=learn;
    }

    //获取知识
    public void getKnowledge(){
        Boolean flag=this.learn.study();
        if (flag){
            System.out.println("获取到知识");
        }else{
            System.out.println("未得到知识");
        }

    }
}
